<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Worker</title>
</head>
<body>
<h1>Worker</h1>
<script>
    function handleWorkerMessage (msg) {
        document.querySelector('h1').innerHTML = msg.data.foo;
    }

    const worker = new Worker('http://localhost:3000/fixtures/regression/gh-7675/pages/worker2.js');

    worker.addEventListener('message', handleWorkerMessage);
</script>
</body>
</html>
